package com.scf.fruit.user;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author : 孙超飞
 * @title :邀请关系
 * @description :
 * @date : 2018-04-18 14:07
 */
@Entity
@Table(name = "invite_code_relation")
public class InviteCodeRelationDto {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private Long id;
    /**
     * 邀请码
     */
    @Column(name = "invite_code")
    private String inviteCode;
    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;
    /**
     * 通过推荐码
     */
    @Column(name = "be_invite_code")
    private String beInviteCode;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getBeInviteCode() {
        return beInviteCode;
    }

    public void setBeInviteCode(String beInviteCode) {
        this.beInviteCode = beInviteCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
